import {ref,reactive} from 'vue'
import { defineStore } from 'pinia'

export const SearchStore=defineStore('SearchList',()=>{
   // 页面  专题类型
   const SearchList:any=reactive([{
      id:'',
      categoryName:''
   }])

// 根据ID查询获取到的对应数据
const oneCourseById=[{
   id:'',
   thematicName:'',
}]

// 获取所有的课程数据
const AllCourse=[{
   img:'',
   className:'',
   price:'',
   enlistsNum:'',        //报名人数
   teacherName:'',
}]


   return {SearchList,oneCourseById,AllCourse}
})